]> dgit.raspbian.org Git - gnome-shell.git/commit
workspaceAnimation: Block workspace updates during switch
authorTony Chen <contact@tycchen.com>
Tue, 2 Jun 2026 20:30:18 +0000 (16:30 -0400)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 29 Jun 2026 17:47:16 +0000 (19:47 +0200)
commitd0ee5ed9f4e8626c309b94006226eb746ab0b4af
tree95692363f4234bf36f9bfd42283c97d7c57c81cd
parentad781ad85d98686ea0e00595cb60e617b23bb625
workspaceAnimation: Block workspace updates during switch

WorkspaceAnimation uses a fixed set of workspace indices to transition
between for each gesture/animation.

That means that if workspaces change during the animation, the mapping
from workspace adjustment value to the animation progress can involve
invalid indices and the animation ends on the wrong workspace.

To fix this, block workspace updates during the animation.

Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8148

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4014>
(cherry picked from commit eaa4e0577a08c3ed38b5f512b4af0b88ede7f1f5)
js/ui/workspaceAnimation.js